__author__ = 'Administrator'
def compare(exJson,factJson):
    isFlag = True
    print("exStr:" + str(exJson))
    print("factStr:" + str(factJson))
    try:
        if exJson['data']['code'] == factJson['data']['code']:
           pass
        else:
            isFlag = False
    except:
        isFlag = False
    print(isFlag)
    return isFlag

def compareStr(exStr,factStr):
    isFlag = True
    print("exStr:"+str(exStr) )
    print("factStr:"+str(factStr))
    try:
        if exStr in factStr:
            pass
        else:
            isFlag = False
    except:
        isFlag = False
    print(isFlag)
    return isFlag